package com.example.library.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.library.entity.Borrowing;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BorrowingMapper extends BaseMapper<Borrowing> {
    int deleteByPrimaryKey(Integer id);

    int insert(Borrowing record);

    int insertSelective(Borrowing record);

    Borrowing selectByPrimaryKey(Integer id);

    List<Borrowing> select();

    int updateByPrimaryKeySelective(Borrowing record);

    int updateByPrimaryKey(Borrowing record);

    Borrowing selectOne(QueryWrapper<Borrowing> aNull);
}